package com.dingpeikeji.quickdeer.modules.base.dao;

import org.springframework.stereotype.Component;

import com.dingpeikeji.quickdeer.core.common.persistence.CrudDao;
import com.dingpeikeji.quickdeer.core.common.persistence.annotation.MyBatisDao;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.User;

@MyBatisDao
public interface FUserDao extends CrudDao<User> {
	public User findUser(String loginName,String password);
	public String getLoginName(String unionid);
	public String getLoginNameByQqOpenid(String openid);
	public void updateUserByUnionID(String unionid, String loginName);
	public User getUserByLoginName(String loginName);
	public void updateUserByOPenID(String openid, String loginName);
	public String getUserImage(String userid);
	public void updateDataPath(String dataPath, String userid);
	public void saveOpenId(String openid, String id);
	public User getUserByOpenId(String openid);
}
